<%@page import="java.util.ArrayList"%>
<%@page import="com.situ.web.entity.Banji"%>
<%@page import="java.util.List"%>
<%@page import="com.situ.web.entity.Student"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="bootstrap-3.3.7-dist/css/bootstrap.css"/>
</head>
<body>
	<%
		Student student = (Student)request.getAttribute("student");
	%>
	<div style="width: 600px; margin: 100px auto;">
		<form action="<%=request.getContextPath()%>/student?method=update" method="post">
			<input type="hidden" class="form-control" name="id" value="<%=student.getId()%>">
 			<div class="form-group">
				<label>姓名</label>
				<input type="text" class="form-control" name="name" value="<%=student.getName()%>"/>
 		 	</div>
			<div class="form-group">
				<label>年龄</label>
				<input type="text" class="form-control" name="age" value="<%=student.getAge()%>"/>
 			 </div>
 			 <div class="form-group">
				<label>性别</label>
				<input type="text" class="form-control" name="gender" value="<%=student.getGender()%>"/>
 			 </div>
 			 <div class="form-group">
 			  	<label>班级</label>
 			  	<select name="banjiId" class="form-control">
				<option value="1">java_1807</option>
				<option value="2">java_1812</option>
				<option value="3">java_2007</option>
				<option value="4">H5_1807</option>
				<option value="5">UI_1812</option>
				<option value="6">UI_1807</option>
				<option value="7">H5_2007</option>
				
				</select>
 			</div>
			<%-- <div class="form-group">
 			  	<label>班级</label>
 			  	<select name="banjiId" class="form-control">
 			  	<%
 			  	List<Banji> list = (ArrayList<Banji>)request.getAttribute("list");
			  		for(Banji banji : list){
				%>		<option value="<%=banji.getId()%>"><%=banji.getName()%></option>
						
						
				<%
 			  		}
 			  	%>
				</select>
			</div> --%>
 			 <button type="submit" class="btn btn-default">修改</button>
	 	</form>
	</div>
</body>
</html>